import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
import './assets/gloable.css'
import request from "@/utils/request";
import BaiduMap from 'vue-baidu-map'

// main.js全局注册
import mavonEditor from 'mavon-editor'
import 'mavon-editor/dist/css/index.css'
// 全局错误处理
Vue.config.errorHandler = (err, vm, info) => {
  console.error('Vue全局错误:', err, info)
}

Vue.config.productionTip = false
// use
Vue.use(mavonEditor)

Vue.config.productionTip = false

Vue.use(ElementUI, {
  size: "mini"
});

Vue.prototype.request = request
Vue.use(BaiduMap, {
  ak: 'YSp8zoHh12lvCOZ3wiue3nnNnVikD3LF', // 替换为你的百度地图AK
  v: '3.0' // 使用3.0版本API
})



new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')